<template>
  <a-card :bordered="false">
    <detail-list title="导师信息" :col="2">
      <detail-list-item term="教师类型">{{ teacherInfo.jzglbmc }}&emsp;</detail-list-item>
      <detail-list-item term="职工编号">{{ teacherInfo.gh }}&emsp;</detail-list-item>
      <detail-list-item term="姓名">{{ teacherInfo.xm }}&emsp;</detail-list-item>
      <detail-list-item term="教师状态">{{ teacherInfo.dqztmc }}&emsp;</detail-list-item>
      <detail-list-item term="姓名拼音">{{ teacherInfo.xmpy }}&emsp;</detail-list-item>
      <detail-list-item term="英文姓名">{{ teacherInfo.ywxm }}&emsp;</detail-list-item>
      <detail-list-item term="曾用名">{{ teacherInfo.cym }}&emsp;</detail-list-item>
      <detail-list-item term="性别">{{ teacherInfo.xbmc }}&emsp;</detail-list-item>
      <detail-list-item term="身份证类型">{{ teacherInfo.sfzjlxmc }}&emsp;</detail-list-item>
      <detail-list-item term="身份证件号">{{ teacherInfo.sfzjh }}&emsp;</detail-list-item>
      <detail-list-item term="证件有效期">{{ teacherInfo.sfzjyxq instanceof moment ? teacherInfo.sfzjyxq.format('YYYY-MM-DD') : teacherInfo.sfzjyxq }}&emsp;</detail-list-item>
      <detail-list-item term="出生日期">{{ teacherInfo.csrq && teacherInfo.csrq.format('YYYY-MM-DD') }}&emsp;</detail-list-item>
      <detail-list-item term="国籍">{{ teacherInfo.gjmc }}&emsp;</detail-list-item>
      <detail-list-item term="民族">{{ teacherInfo.mzmc }}&emsp;</detail-list-item>
      <detail-list-item term="政治面貌">{{ teacherInfo.zzmmmc }}&nbsp;</detail-list-item>
      <detail-list-item term="宗教信仰">{{ teacherInfo.xyzjmc }}&emsp;</detail-list-item>
      <detail-list-item term="港澳台侨">{{ teacherInfo.gatqwmc }}&emsp;</detail-list-item>
      <detail-list-item term="婚姻状况">{{ teacherInfo.hyzkmc }}&emsp;</detail-list-item>
      <detail-list-item term="健康状况">{{ teacherInfo.jkzkmc }}&emsp;</detail-list-item>
      <detail-list-item term="血型">{{ teacherInfo.xxmc }}&emsp;</detail-list-item>
      <detail-list-item term="籍贯">{{ teacherInfo.jgsdmc }}&emsp;{{ teacherInfo.jgcdmc }}&emsp;{{ teacherInfo.jgxqdmc }}</detail-list-item>
      <detail-list-item term="出生地">{{ teacherInfo.csdsmc }}&emsp;{{ teacherInfo.csdcmc }}&emsp;{{ teacherInfo.csdqxmc }}</detail-list-item>
      <detail-list-item term="户口类型">{{ teacherInfo.hklbmc }}&emsp;</detail-list-item>
      <detail-list-item term="户口所在地">{{ teacherInfo.hkszd }}&emsp;</detail-list-item>
      <detail-list-item term="家庭地址">{{ teacherInfo.jtzz }}&emsp;</detail-list-item>
      <detail-list-item term="文化程度">{{ teacherInfo.whcdmc }}&emsp;</detail-list-item>
      <detail-list-item term="参加工作年月">{{ teacherInfo.cjgzny && teacherInfo.cjgzny.format('YYYY-MM') }}&emsp;</detail-list-item>
      <detail-list-item term="来校日期">{{ teacherInfo.lxrq && teacherInfo.lxrq.format('YYYY-MM') }}&emsp;</detail-list-item>
      <detail-list-item term="起薪日期">{{ teacherInfo.qxrq && teacherInfo.qxrq.format('YYYY-MM') }}&emsp;</detail-list-item>
      <detail-list-item term="从教年月">{{ teacherInfo.cjny && teacherInfo.cjny.format('YYYY-MM') }}&emsp;</detail-list-item>
      <detail-list-item term="任课状况">{{ teacherInfo.rkzkmc }}&emsp;</detail-list-item>
      <detail-list-item term="最后学历">{{ teacherInfo.zgxlmc }}&emsp;</detail-list-item>
      <detail-list-item term="最后学位">{{ teacherInfo.zhxwmc }}&emsp;</detail-list-item>
      <detail-list-item term="毕业院校或机构">{{ teacherInfo.byxxmc }}&emsp;</detail-list-item>
      <detail-list-item term="毕业年月">{{ teacherInfo.byny && teacherInfo.byny.format('YYYY-MM') }}&emsp;</detail-list-item>
      <detail-list-item term="通讯地址">{{ teacherInfo.txdz }}&emsp;</detail-list-item>
      <detail-list-item term="所属院系">{{ teacherInfo.ssyxmc }}&emsp;</detail-list-item>
      <detail-list-item term="所属专业">{{ teacherInfo.zdzymc }}&emsp;</detail-list-item>
      <detail-list-item term="定职时间">{{ teacherInfo.dzsj && teacherInfo.dzsj.format('YYYY-MM') }}&emsp;</detail-list-item>
      <detail-list-item term="职称">{{ teacherInfo.zcmc }}&emsp;</detail-list-item>
      <detail-list-item term="手机号码">{{ teacherInfo.lxdh }}&emsp;</detail-list-item>
      <detail-list-item term="住宅电话">{{ teacherInfo.zzdh }}&emsp;</detail-list-item>
      <detail-list-item term="办公电话">{{ teacherInfo.bgdh }}&emsp;</detail-list-item>
      <detail-list-item term="邮政编码">{{ teacherInfo.yzbm }}&emsp;</detail-list-item>
      <detail-list-item term="电子邮箱">{{ teacherInfo.dzxx }}&emsp;</detail-list-item>
      <detail-list-item term="主页地址">{{ teacherInfo.zydz }}&emsp;</detail-list-item>
      <detail-list-item term="导师资助科研经费账号">{{ teacherInfo.dszzkyjfzh }}&emsp;</detail-list-item>
      <detail-list-item term="个人简介">{{ teacherInfo.dsjj }}&emsp;</detail-list-item>
      <detail-list-item term="审核结果">{{ teacherInfo.shztmc }}&emsp;</detail-list-item>
      <detail-list-item term="审核备注">{{ teacherInfo.shsm }}&emsp;</detail-list-item>
    </detail-list>
    <div class="ant-pro-footer-toolbar">
      <a-button style="float: right;margin-top: 10px;" @click="back" type="primary">返回</a-button>
    </div>
  </a-card>
</template>

<script>
import DetailList from '~/tool/DetailList'
const DetailListItem = DetailList.Item
import moment from 'moment'

export default {
  data () {
    return {
      teacherInfo: {},
      moment: moment
    }
  },
  components: {
    DetailList,
    DetailListItem
  },
  created () {
    this.$api.cultivate.teacherDetail(this.$route.params.bh).then(res => {
      this.teacherInfo = res.data
    })
  },
  methods: {
    back () {
      this.$router.back()
    }
  }
}
</script>

<style>

</style>
